<!--
test
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script>
            var capitaine = new Object();
            capitaine.nom = "moi";
            capitaine.prenom = "meme";
            capitaine.nomComplet = function(){
                return this.prenom + " " + this.nom;
            }
            console.log(capitaine.nomComplet);
            console.log(capitaine.nomComplet());
            
            var lulubelle = {
                prenom : "lulubelle",
                nom: "capricieuse",
                nomComplet: capitaine.nomComplet
            }
            
            console.log(lulubelle.nomComplet);
            
            var bd = {
                auteur : "choubaka",
                personnages : [capitaine, lulubelle]
            }
            console.log(bd);
            console.log("nb personnages = "+bd.personnages.length);
            
        </script>
            
    </head>
    <body>
        <div>TODO write content</div>
    </body>
</html>
